package com.mifengs.mall.di.module;

import com.mifengs.commonbase.di.scope.FragmentScope;
import com.mifengs.mall.ui.main.NewHomeContract;
import com.mifengs.mall.ui.main.NewHomePresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by lihaoqi on 2018/4/17.
 */
@Module
public class NewHomeFrgModule {

    public final NewHomeContract.View mView;

    public NewHomeFrgModule(NewHomeContract.View mView) {
        this.mView = mView;
    }

    @FragmentScope
    @Provides
    public NewHomePresenter providePresenter() {
        return new NewHomePresenter(mView);
    }

}
